package com.qms.qep.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 质量标准对象 standard
 * 
 * @author qms
 * @date 2024-05-14
 */
public class Standard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 标准编号 */
    @Excel(name = "标准编号")
    private String code;

    /** 标准名称 */
    @Excel(name = "标准名称")
    private String name;

    /** 标准分类ID */
    @Excel(name = "标准分类ID")
    private Integer categoryId;

    /** 标准版本 */
    @Excel(name = "标准版本")
    private String version;

    /** 发布日期 */
    @Excel(name = "发布日期", dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 标准文档地址 */
    @Excel(name = "标准文档地址")
    private String docUrl;

    /** 状态（1有效 0无效） */
    @Excel(name = "状态", readConverterExp = "1=有效,0=无效")
    private Integer status;

    /** 标准分类名称（非数据库字段） */
    @Excel(name = "标准分类")
    private String categoryName;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCategoryId(Integer categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId() 
    {
        return categoryId;
    }

    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }

    public void setPublishDate(Date publishDate) 
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() 
    {
        return publishDate;
    }

    public void setDocUrl(String docUrl) 
    {
        this.docUrl = docUrl;
    }

    public String getDocUrl() 
    {
        return docUrl;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("categoryId", getCategoryId())
            .append("version", getVersion())
            .append("publishDate", getPublishDate())
            .append("docUrl", getDocUrl())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("categoryName", getCategoryName())
            .toString();
    }
} 